package com.fei.BYSJ.service.impl;

import com.fei.BYSJ.dao.OrdersTagMapper;
import com.fei.BYSJ.entity.OrdersTag;
import com.fei.BYSJ.entity.Tag;
import com.fei.BYSJ.service.OrdersTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersTagServiceImpl implements OrdersTagService {
    @Autowired
    OrdersTagMapper ordersTagMapper;
    @Override
    public List<OrdersTag> findAllTagByOrderID(int id) {
        return ordersTagMapper.selectAllTagByOrderID(id);
    }

    @Override
    public int addOrderTag(OrdersTag ordersTag) {
        return ordersTagMapper.insert(ordersTag);
    }
}
